<?php
/**
 * (commands)
 */
namespace App\Console\Commands\Tool;

use App\Logic\Tool\ToolWork;
use Illuminate\Console\Command;
class Tools extends Command
{
    /**
     * The name and signature of the console command.
     * param?* 可选的数组参数
     * @var string
     */
    protected $signature = 'tool {func} {param?*}';

    /**
     * The console command description.
     * @var string
     */
    protected $description = 'exe func';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $func = $this->argument('func');
        $param = $this->argument('param');
        ToolWork::work($func,$param);
        $this->info('finish!');
    }
}
